# -*- encoding: utf-8 -*-

"""
------------------------------------------
@File       : __init__.py
@Author     : maixiaochai
@Email      : maixiaochai@outlook.com
@CreatedOn  : 2021/6/30 16:09
------------------------------------------
该模块主要是记录一些《Effective Python》和《Effective Python（第二版）》中比较重要的代码
"""

# 源码地址
code_url = "https://github.com/bslatkin/effectivepython"

# 名词解释
fan_out = "扇出，针对每个工作单元开辟一条执行路径"
fan_in = "扇入，等待并发的工作单元全部完工，才执行下一个环节"


class Nouns:

    def __getattr__(self, item):
        data = globals()

        return data.get(item)


if __name__ == '__main__':
    nouns = Nouns()
    doc = nouns.fan_out
    print(doc)
